package com.mall.dubbo.api;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.mall.dubbo.mappers.OmsCompanyAddressMapper;
import com.tanhua.model.domain.OmsCompanyAddress;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@DubboService
public class OmscompanyAddressApiImpl implements OmscompanyAddressApi {

    @Autowired
    private OmsCompanyAddressMapper omsCompanyAddressMapper;

    /**
     * 获取所有收货地址
     *
     * @return
     */
    @Override
    public List<OmsCompanyAddress> listAll() {
        return omsCompanyAddressMapper.selectList(new LambdaQueryWrapper<>());
    }
}
